home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7739 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news.citenet.net!usenet
  2. From: Oliver Lavery <oliver@citenet.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Zombies & Daemons
  5. Date: Wed, 28 Feb 1996 10:56:57 +0000
  6. Organization: CiteNet Telecom - Commercial Internet Service
  7. Message-ID: <313434F9.1072@citenet.net>
  8. NNTP-Posting-Host: g34-210.citenet.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win95; I)
  13.  
  14. I've just finished writting a daemon to handle the OCI 
  15. side of generating web pages from an Oracle database. When it executes, 
  16. the parent forks a number of children, all of which are bound to a 
  17. network port. Each child services requests in order etc. etc. works more 
  18. or less like an apache httpd...
  19.  
  20.     The problem is this: when one of the children dies for whatever 
  21. reason (usually a f*cked OCI call which makes the daemons session 
  22. unstable), the parent's SIGCHLD handler forks a new child to keep a 
  23. consistent number of processes running. For some reason, however, the 
  24. dead child lingers around as a zombie process ... how do I avoid this?
  25.  
  26.     Also, does SunOS support copy on write memory pages? 
  27.  
  28. Later,
  29. Oliver Lavery
  30. -- 
  31. `'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`
  32.   oliver@citenet.net            http://www.quebec.net/~oliver/
  33.  
  34.  The dogmas of the quiet past are inadequate in the stormy present.
  35.                     - A. Lincoln
  36. `'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`
  37.  
  38. -----BEGIN PGP PUBLIC KEY BLOCK-----
  39. Version: 2.1
  40.  
  41. mQCNAjDkcmQAAAEEAOkLryuvgyTx/h4lkrtvx5jQSlMQLeCWAJcfVS5DFkR1bna6
  42. ehPPcIUl4+fF81zR9bJajdrPhGM5wUmSwLxRiWuzapXv0rgB0DlcjeGCCqaOgX5u
  43. BJfSmKMDGJeRZ20fXJG4zLzVTjoUpQRh1rsUYt8Y4kkhzYA6iJz10yjPhg8BAAUR
  44. tA1PbGl2ZXIgTGF2ZXJ5
  45. =XAGz
  46. -----END PGP PUBLIC KEY BLOCK-----
  47.